'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.get('/', controller.wechat.server_auth);
  router.post('/',controller.wechat.server_listener);
  router.post('/test',controller.wechat.js_sdk);
  router.get('/wechat-redirect',controller.wechat.wechat_redirect);
  router.get('/wechat-oauth', controller.wechat.wechat_oauth);
};
